package com.yuexun.beilunpatient.ui.family.api;

import com.yuexun.beilunpatient.base.BaseEntity;
import com.yuexun.beilunpatient.ui.family.bean.KinsfolkBean;

import java.util.Map;

import retrofit.http.FieldMap;
import retrofit.http.FormUrlEncoded;
import retrofit.http.POST;
import rx.Observable;

/**
 * Created by chenss on 2018/11/6.
 */
public interface FamilyApi {

    //查询亲属列表
    @FormUrlEncoded
    @POST("inquirePatientRelativeList.json")
    Observable<BaseEntity<KinsfolkBean>> getAppoinmentFamilyNum(@FieldMap Map<String, String> praise);

    //增加亲属号
    @FormUrlEncoded
    @POST("createPatientRelative.json")
    Observable<BaseEntity<String>> modifyAppoinmentFamilyNum(@FieldMap Map<String, String> praise);

    //删除亲属号
    @FormUrlEncoded
    @POST("deletePatientRelative.json")
    Observable<BaseEntity<String>> deletePatientRelative(@FieldMap Map<String, String> praise);
}
